import Home from "../views/home";
import Login from "../views/login";
import Layout from "../layout";
import SignIn from "../views/login/components/sign_in";
import SignUp from "../views/login/components/sign_up";
import ForgetPass from "../views/login/components/forget_pass";
import  Verifycode from '../views/login/components/verifycode'
import { Navigate } from "react-router-dom";
import FindPass from "../views/login/components/find_pass";
import Shebei from "../views/shebei";
import Fenxi from "../views/fenxi";
import Pinlv from "../views/pinlv";
import Tuku from "../views/tuku";
import History from "../views/history";
import Shezhi from "../views/shezhi";
export const routes = [
  { path: "/" ,element:<Navigate to="/login"></Navigate>},
  {
    path: "/login",
    element: <Login></Login>,
    children:[
      {
        path:'/login',
        element:<Navigate to="/login/sign_in"></Navigate>,
      },
      {
        path: "/login/sign_in",
        element: <SignIn></SignIn>,
      },
      {
        path: "/login/sign_up",
        element: <SignUp></SignUp>,
      },
      {
        path: "/login/forget_pass",
        element: <ForgetPass></ForgetPass>,
      },{
        path: "/login/verifycode",
        element: <Verifycode></Verifycode>,
      },{
        path: "/login/find_pass",
        element: <FindPass></FindPass>,
      },
    ]
  },
  {
    path: "/layout",
    element: <Layout></Layout>,
    children: [
      {
        path:'/layout',
        element:<Navigate to="/layout/home"></Navigate>,
      },
      {
        path: "/layout/home",
        element: <Home></Home>,
      },{
        path: "/layout/shebei",
        element: <Shebei></Shebei>,
      },
      {
        path: "/layout/fenxi",
        element: <Fenxi></Fenxi>,
      },
      {
        path: "/layout/pinlv",
        element: <Pinlv></Pinlv>,
      },{
        path: "/layout/tuku",
        element: <Tuku></Tuku>,
      },
      {
        path: "/layout/history",
        element: <History></History>,
      },{
        path: "/layout/shezhi",
        element: <Shezhi></Shezhi>,
      },
    ],
  },
];
